package com.foreknow.demo11;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class ExceptionDemo2 {

    public void m1() throws Exception {
        System.out.println("111111111111111111");
    }

    public static void main(String[] args) {

        FileReader fileReader = null;
        try{
            fileReader = new FileReader("");
            fileReader.read();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

//        ExceptionDemo2 demo2 = new ExceptionDemo2();
//        try {
//            demo2.m1();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }

}
